<template>
  <div id="app">
<!--    <router-link to="/">首页</router-link>-->
<!--    <router-link to="/about">关于我们</router-link>-->
<div class="nav">
  <ul>
    <router-link v-for="item in navList" :to="item.url"
                 tag="li"
                 >{{item.text}}
    </router-link>
  </ul>
</div>
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'app',
  data(){
    return{
      navList:[
        {
          text:"首页",
          url:'/',
          children:[]
        },
        {
          text:"关于我们",
          url:'about',
          children:[]
        }
      ]
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*text-align: center;*/
  /*color: #2c3e50;*/
  /*margin-top: 60px;*/
}
</style>
